package HomeWork.chapter05;

/**
 * Enjoy programming!!!
 * Time: 2021/12/3 -  16:06
 */
import java.util.Scanner;
public class Diamond {
    public static void main(String[] args){
        Scanner in = new Scanner(System.in);

        int  n = in.nextInt();

        for (int i = 1; i <= n / 2 + 1; i++){
            int j1 ;
            for ( j1 = 1; j1 <=(n - (i * 2 - 1)) / 2; j1++){
                System.out.printf(" ");
            }
            for (int j = 1; j <= i * 2 - 1; j++){
                System.out.printf("*");
            }
//            for ( int ij1 = 1; j1 <=(n - i * 2 - 1) / 2){
//                System.out.printf(" ");
//            }
            System.out.println();
        }for (int i = 1; i <= n / 2 ; i++){
            int j1 ;

            for (int j = (n - (i * 2 - 1)) / 2; j >= 1; j--){
                System.out.printf(" ");
            }
            for ( j1 = i * 2 - 1; j1 >= 1 ; j1--){
                System.out.printf("*");
            }
//            for ( int ij1 = 1; j1 <=(n - i * 2 - 1) / 2){
//                System.out.printf(" ");
//            }
            System.out.println();
        }
    }
}
